<!doctype html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport"
        content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
<!--  <script src="./js/compiler.js"></script>-->
<!--  <script src="./js/observer.js"></script>-->
<!--  <script type="module" src="./js/vue.js"></script>-->
</head>
<body>
  <div id="app">
    <h1>{{msg}}</h1>
    <h3>{{ count }}</h3>
    <h1>v-text</h1>
    <div v-text="msg"></div>
    <div v-text="count"></div>
    <h1>v-model</h1>
    <input type="text" v-model="msg">
    <input type="text" v-model="count">
  </div>
  <script type="module">
    import Vue from './js/vue.js'
    const vm = new Vue({
      el: '#app',
      data: {
        msg: '黑马',
        count: 1,
        obj: {
          a: 'b'
        }
      }
    })
    console.log(vm);
    vm.msg = '324234'
  </script>
</body>
</html>
